import { Layout } from '@/utils/routerHelper'

export const park = [
  {
    path: '/park',
    component: Layout,
    // redirect: '/park/info',
    name: 'Park',
    meta: {
      title: '智慧公园系统',
      icon: 'Tools',
      alwaysShow: true
    },
    children: [
      {
        path: 'info',
        component: () => import('@/views/Park/park.vue'),
        name: 'Info',
        meta: {
          title: '公园信息管理',
          noCache: true,
          affix: true
        }
      },

      {
        path: 'view',
        component: () => import('@/views/Park/parkView.vue'),
        name: 'View',
        meta: {
          title: '公园概览',
          noCache: true,
          affix: true
        }
      },
      {
        path: 'tourist',
        component: () => import('@/views/Park/tourist.vue'),
        name: 'Tourist',
        meta: {
          title: '游客监管',
          noCache: true,
          affix: true
        }
      }
    ]
  },
  {
    path: '/parkJob',
    component: Layout,
    name: 'ParkJob',
    meta: {
      title: '公园从业人员台账',
      icon: 'Tools',
      alwaysShow: true
    },
    children: [
      {
        path: 'job',
        component: () => import('@/views/Park/job.vue'),
        name: 'Job',
        meta: {
          title: '公园从业人员设备管理',
          noCache: true,
          affix: true
        }
      }
    ]
  }
]
